﻿@using MudBlazor.Interfaces
<MudDialog OnBackdropClick="@OnBackdropClick">
    <TitleContent>
        Title: @_textTest
    </TitleContent>
</MudDialog>


@code {
    private string _textTest;

    [CascadingParameter]
    private MudDialogInstance MudDialog { get; set; }

    private void OnBackdropClick()
    {
        _textTest = "Backdrop clicked";
        ((IMudStateHasChanged)MudDialog).StateHasChanged();
    }
}